/*
 *  BCNSpcRule.h
 *  Beacon
 *
 *  Created by arden on 11/19/11.
 *  Copyright 2011 Fried Chicken Legs. All rights reserved.
 *
 */

#import "BCNSpcCommon.h"


@protocol BCNSpcRule
//
// get rule id for a rule instance.
//
-(BCNSpcRuleType) RuleType;

//
// get rule point count
//
-(int) GetRulePointCount;

//
// get the desctiption of rule
//
-(NSString) GetDescription;

//
// add data to rule
// if validate happens return false
//
-(BOOL) AddPoint :(double) data;

//
// add data to rule with sample size 
//
-(BOOL) AddPoint:(double) data size:(double) sampleSize;

//
// reset the rule instance
//
-(void) Reset;

@end
